package com.shangxia.dreaming.common.content;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @ProjectName: dreaming
 * @ClassName: ConditionContent
 * @Time: 2020/10/5
 * @Author: zhouy
 * @Description:
 * @Experience:
 */

@Slf4j
@Component
public class ConditionContent {
    /**
     * 程序类型
     */
    public static String TYPE;
    public static String TYPE2;
    /**
     * 程序路径
     */
    public static String PATH;
    /**
     * 程序结果路径
     */
    public static String PATH_Result;
    /**
     * 最大翻表层数
     */
    @Value("${MUST_TURN_TABLE_COLUMN}")
    public static Integer MUST_TURN_TABLE_COLUMN;

    /**
     * 单期号码真号个数
     */
    public static int SON_CODE_LENGTH = 1;

    /**
     * 单期号码真号对比个数
     */
    public static int SON_CHECK_CODE_LENGTH = 1;

    public static int SON_INDEX1 = 1;
    public static int SON_INDEX2 = 1;

    /**
     * 单期号码总个数
     */
    public static int SUM_CODE_LENGTH = 1;

    /**
     * 最小年龄
     */
    public static Integer MIN_COUNT_AGE;



    @Value("${TYPE}")
    public void setTYPE(String type) {
        TYPE = type;
    }


    @Value("${TYPE2}")
    public void setTYPE2(String type) {
        TYPE2 = type;
    }

    @Value("${PATH}")
    public void setPATH(String path) {
        PATH = path;
    }

    @Value("${PATH_Result}")
    public void setPATH_Result(String path_result) {
        PATH_Result = path_result;
    }

    @Value("${MUST_TURN_TABLE_COLUMN}")
    public void setMUST_TURN_TABLE_COLUMN(Integer must_turn_table_column) {
        MUST_TURN_TABLE_COLUMN = must_turn_table_column;
    }


    @Value("${MIN_COUNT_AGE}")
    public void setMIN_COUNT_AGE(int min_count_age) {
        MIN_COUNT_AGE = min_count_age;
    }

}
